package com.aloda.controller.user;

import com.aloda.result.Result;
import com.aloda.service.PageContentService;
import com.aloda.vo.PageContentVO;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/user/page")
@RestController("user-page")
public class PageContentController {

    @Resource
    private PageContentService pageContentService;

    /**
     * 获取关于页面内容
     * @return
     */
    @GetMapping("/about")
    public Result<PageContentVO> getAboutPage() {
        PageContentVO pageContentVO = pageContentService.getAboutPage();
        return Result.success(pageContentVO);
    }
}
